#for...in循环

#列表{有顺序}
'''
stu = ['张珊','李四','王五','赵六','何其','瓦王']
index = 0
while index<len(stu):
    print(stu[index])
    index+=1
'''
'''
#集合(无序集合)

stu = {'张珊','李四','王五','赵六','何其','瓦王'}


#输出每个值

for one in stu:
    print(one)

'''



#字典的遍历

dics = {'one':'张珊','tow':'李四','three':'王五'}

for i in dics:
    #获取字典的建
    print(i)
    #获取字典的值
    print(dics[i])



#字符串也能进行循环遍历


str1 = "If You Feel My Love"


for i in str1:
    print(i)













